#ifndef MYOVER_H
#define MYOVER_H

class MyOverlapped
{
	public:
		MyOverlapped(Connection*);
		~MyOverlapped();

	public:
		OVERLAPPED			over;
		class Connection*	conn;
};

inline
MyOverlapped::MyOverlapped(Connection* conn)
{
	ZeroMemory(&over, sizeof(OVERLAPPED));
	this->conn = conn;
}

inline
MyOverlapped::~MyOverlapped()
{
	ASSERT(1 == HasOverlappedIoCompleted(&over));
	conn = (class Connection*)0;
}

#endif
